<?php

	session_start();
	
	if ( isset($_SESSION['username']) )
	{
		header ("Location: frame.php?page=home.php");
		exit;
	}
	
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
	<title>The Pin Project | Log In</title>
	<link rel="icon" type="image/ico" href="favicon.ico" />
	<link rel="stylesheet" type="text/css" href="topLevel.css" />
</head>

<body>

<div class="wrapper">

	<div style="height: 50px;"></div>

	<div class="loginp_top">
		<img src="img/login_portal_bg.png" width="800" height="170" />
	</div>				
	
	<center>
	
	<table>
		<tr>
			<td>
				<span class="accent">The Pin Project</span> is a growing community where artists, musicians, photographers, programmers, gaming enthusiasts, and more can meet to <span class="accent">share their work</span> and <span class="accent">get feedback</span> from others.
				
			</td>
			
			<td>
				<img src="/img/separator.gif" />
			</td>
			
			<td width="100">
				<span class="accent2" style="font-size: 18pt;">Log in:</span>
			</td>
			
			<td>
				<form name="login" method="post" action="checkLogin.php">
				<?php if ($_GET['event'] == "badlogin") {
					?>
				<span class="redtext">Incorrect login information, please try again.</span>
				<?php } ?>
					<table><tr>
					<td>Username</td> <td><input name="username" class="loginform_p" type="text" size="25" /></td></tr>
					<tr><td>Password</td> <td><input name="password" class="loginform_p" type="password" size="25" /></td></tr>
					<tr><td></td><td><input class="loginform_p" type="submit" value="Login" /></td></tr></table>
					<div class="horizontal_separation"></div>
					<img src="/img/arrow_green.gif"><a href="frame.php?page=signup.php">Don't have an account? Sign up!</a>
				</form>
			</td>
		</tr>
	</table>
	
	<p />
	<a href="/frame.php?page=aboutus.php">About Us</a> <img src="/img/icons/song_sm.png" /> <a href="/common/gallery/portal_music.php">Music</a> <img src="/img/icons/picture_sm.png" /> <a href="/common/gallery/portal_pictures.php">Pictures</a>
	
	<p />
	<img src="/img/copyright_footer_blue.png" />
	
	</center>

</div>

</body>
</html>


<!--

		
!-->